import { createRouter, createWebHistory } from "vue-router";
const routes = [
    {
        path: "/",
        component: () => import("@/view/indexOne.vue"),
        children:[ // 嵌套子路由
            {
                path: "/test",
                component: () => import("@/components/inputOne.vue"),
                meta:{
                    keepAlive:true
                }
            },

        ]
    },
    {
        path: "/home",
        component: () => import("@/view/threeHome.vue"),
    },
    {
        path: "/test1",
        component: () => import("@/components/test1.vue"),
        meta:{
            keepAlive:false
        }
    },
    {
        path: "/test2",
        component: () => import("@/components/test2.vue"),
        meta:{
            keepAlive:false
        }
    },
    {
        path: "/cycle",
        component: () => import("@/components/cycle.vue"),
    },
    {
        path: "/ambientLight",
        component: () => import("@/components/ambientLight.vue"),
    },
    {
        path: "/grasslandModel",
        component: () => import("@/view/grasslandModel/index.vue"),
    },
    {
        path: "/antv",
        component: () => import("@/components/antv.vue"),
    },
];
const router = createRouter({
    routes,
    history: createWebHistory(),
});

export default router;
